<%--
  Created by IntelliJ IDEA.
  User: 陶昱全
  Date: 2021/11/21
  Time: 14:13
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>作业批改</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

    <link rel="stylesheet" type="text/css" href="../../../../../static/css/teacherSystem.css"/>
</head>
<body>
<div class="container-fluid">
    <div class="container con1">
        <div class="row rown">
            <div class="col-md-10">
                <div class="col-md-12">
                    <img src="../../../../static/img/16353973302582117.png" class="img-rounded"/>
                    <h1>
                        <span>作业管理系统</span>
                    </h1>
                </div>
            </div>
            <div class="col-md-2">
                <div class="col-md-12">
                    <a  class="btn woff" href="${pageContext.request.contextPath}/hms/teaLogout">注销</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="container">
<div class="row" style="margin-bottom: 150px;">
    <div class="col-md-12">
        <div class="col-md-2">
        </div>
            <div class="col-md-10">
                    <div class="col-md-2">
                    </div>
                    <div class="col-md-10">
                        <h3>
                            作业批改
                        </h3>
                    </div>
            </div>
            <div class="col-md-2">
            </div>
            <div class="col-md-8">
                <div class="row">
                    <div class="col-md-12">
                        <blockquote>
                            <p>
                                ${title}
                            </p> <small><cite>班级：${cname}</cite></small>
                        </blockquote>
                    </div>
                    <div class="col-md-12">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>
                                    学号
                                </th>
                                <th>
                                    姓名
                                </th>
                                <th>
                                    提交状态
                                </th>
                                <th>
                                    分数
                                </th>
                                <th>
                                    操作
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach var="work" items="${requestScope.get('studentWorks')}">
                            <tr class="success">
                                <td>${work.student_id}</td>
                                <td>${work.name}</td>
                                <td><c:if test="${(work.studentAnswer ==null)&&(work.fileName ==null)}"><p style="color:#ff0000;">未提交</p></c:if>
                                    <c:if test="${(work.studentAnswer !=null)||(work.fileName !=null)}"><p style="color:#00ff00;">已提交</p></c:if></td>
                                <td>${work.score}</td>
                                <td>
                                    <a href="${pageContext.request.contextPath}/hms/toAWork/${work.id}/${title}/${cname}/${wid}" role="button" class="btn" data-toggle="modal">批改</a>
                                </td>
                            </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                        <button class="btn" type="button"><em class="icon-align-left"></em><a href="${pageContext.request.contextPath}/hms/teacherSystem1">返回主页面</a></button>
                    </div>
                </div>
            </div>
            <div class="col-md-2">
            </div>
    </div>
</div>
</div>
<script>

</script>
</body>
</html>

